package com.amithkoujalgi.framework.rest.core;


import java.util.Properties;

public class ApplicationContext
{
	private static ApplicationContext instance;

	private Properties config;
	private ComponentInit componentInit;

	private ApplicationContext ()
	{
	}

	public static synchronized ApplicationContext getInstance()
	{
		if( instance == null )
		{
			instance = new ApplicationContext();
		}
		return instance;
	}

	public void setComponentInit( ComponentInit component )
	{
		this.componentInit = component;
	}

	public ComponentInit getComponentInit()
	{
		return componentInit;
	}

	public Properties getConfig()
	{
		return config;
	}

	public void setConfig( Properties config )
	{
		this.config = config;
	}

}
